package com.ptswitch.material.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.impl.ContractAttachmentDao;
import com.ptswitch.material.model.contract.ContractAttachment;
import com.ptswitch.material.service.ContractAttachmentService;

@Service
public class ContractAttachmentServiceImpl implements ContractAttachmentService {

    @Resource
    private ContractAttachmentDao contractAttachmentDao;

    @Override
    public void save(ContractAttachment model) {
        contractAttachmentDao.save(model);
    }

    @Override
    public ContractAttachment findById(String id) {
        return contractAttachmentDao.findById(id);
    }

    @Override
    public void delete(ContractAttachment model) {
        contractAttachmentDao.delete(model);
    }

}
